package com.example.back.mapper;

import com.example.back.dto.resp.AdminResp;
import com.example.back.dto.resp.DiseaseInfoRsp;
import com.example.back.dto.resp.DiseaseListResp;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface DiseaseMapper {

    List<DiseaseListResp> findByDiseaseName(@Param("DiseaseName") String DiseaseName, @Param("disable") Boolean disable, @Param("dType") Byte dType);



    @Select("SELECT a.id_bigint AS ID ,a.code_nvarchar AS Code, a.disease_name_nvarchar AS DiseaseName ,a.d_type_int AS DType ,a.disable_bit AS Disable  " +
            "FROM h_disease_info a WHERE a.id_bigint=#{did}")
    DiseaseInfoRsp findByDcId(@Param("did") Long did);
}
